export class ReadDataTaskExecutedResult {
  taskId: string;
  partId: string;
  deviceId: string;
  deviceName: string;
  taskName: string;
  dataType: string;
  address: string;
  value: string;
  constructor() {
    this.taskId = "";
    this.partId = "";
    this.deviceId = "";
    this.deviceName = "";
    this.taskName = "";
    this.dataType = "";
    this.address = "";
    this.value = "";
  }
}

export enum LogLevel {
  Normal,
  Warning,
  Error
}

export enum RuningStatus {
  Runing = "green",
  Stop = "red",
  Warning = "yellow"
}

export enum BrowserGroups {
  DeviceMaintenance = "DeviceMaintenance"
}

export interface ProjectInfo {
  creationTime: string;
  creatorId: string;
  id: string;
  lastModificationTime: string;
  lastModifierId: string;
  projectName: string;
  site: number;
}

export interface PartsInfo {
  creationTime: string;
  creatorId: string;
  currentValueTaskName: string;
  deviceId: string;
  id: string;
  lastModificationTime: string;
  lastModifierId: string;
  partName: string;
  partOwnerId: string;
  partStatus: string;
  projectId: string;
  stopValueTaskName: string;
  warningTaskName: string;
  warningValueTaskName: string;
}

export interface CharacteristicItem {
  label: string;
  value: string;
  unit: string;
}

export interface DistributionDeviceStatus {
  status: string;
  title: string;
  partId: string;
  characteristicItems: {
    [key: string]: CharacteristicItem;
  };
}

export enum Status {
  Exception = "rgb(255, 73, 73)",
  Warning = "rgb(230, 162, 60)",
  Sucess = "rgb(32, 160, 255)"
}
